package com.wildfire.constant;

import com.wildfire.common.util.web.IError;

/**
 * 错误码示例
 */
public enum DemoErrorCode implements IError {
    /**
     * 错误码
     */
    DEMO_ERROR_ONE("10000001", "错误码10000001"),
    DEMO_ERROR_TWO("10000002", "错误码10000002");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误信息
     */
    private String error;

    DemoErrorCode(String code, String error) {
        this.code = code;
        this.error = error;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getError() {
        return error;
    }

    @Override
    public void setError(final String message) {
        this.error = message;
    }
}
